package com.quanquan.store.repository.marketActivity;

import com.quanquan.store.entity.marketActivity.MarketActivity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * @ClassName MarketActivityRepository
 * @Description
 * @Author Owen
 * @Date 2019/9/17 0017 上午 10:29
 * @Version V1.0
 **/
public interface MarketActivityRepository extends JpaRepository<MarketActivity,Integer> {

    List<MarketActivity> findAllByStateAndShowStatusAndStartTimeBeforeAndEndTimeAfterOrderBySortAsc(Integer state, boolean showStatus, Date timeStart, Date timeEnd);

}
